package com.zwb.demo.test;

import com.zwb.demo.eventlistener.EventListener;
import com.zwb.demo.eventlistener.EventPublisher;

public class Listener implements EventListener.DayEndEvent{

    public Listener() {
        EventPublisher.getInstance().register(this);
    }

    @Override
    public void dayEnd() {
        System.out.println("这是跨天事件");
    }
}
